package com.njegovanobradovic.pages.admin;

import java.util.List;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.njegovanobradovic.entities.Message;
import com.njegovanobradovic.so.GetAll;

public class AllMessages {
	@Inject
	private GetAll<Message> getAllMessages;
	@Property
	private Message message;
	
	public List<Message> getMessageList(){
		getAllMessages.setSearchForType(Message.class);
		return getAllMessages.execute();
	}
}
